package cn.forward.appconfiguration;


import cn.forward.properties.AppUrlProperties;
import cn.forward.template.WechatTemplate;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({AppUrlProperties.class})
public class AppWechaConfiguration {

    @Bean
    public WechatTemplate appWechatTemplate(AppUrlProperties appUrlProperties){

        return new WechatTemplate(appUrlProperties);
    }


}
